<?php

namespace App\Models\Shop;

use Illuminate\Database\Eloquent\Model;

class Ticket extends Model
{
   protected $guarded = [];

   //优惠券与用户之间多对多
   public function accounts()
   {
      return $this->belongsToMany(Account::class, 'account_tickets');
   }

}
